package com.autumn.cloud.gateway.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-12-16 04:25
 **/
@RestController
public class FallbackController {

    /**
     * 熔断
     *
     * @return
     */
    @GetMapping("/fallback")
    public ErrorResponse fallback() {
        return ErrorResponse.fail("服务暂时不可用");
    }
}
